/**
 * 
 */
package com.example.bankingsystemandroid.utils;

import java.io.IOException;
import java.util.Properties;

import android.content.Context;

/**
 * @author rd-admin
 *
 */
public class PropertiesConfig {
//	server.ip
	private String fileName = "server-config.properties";
	public static Properties prop;
	
	public PropertiesConfig(Context context) throws IOException {
		super();
		AssetsPropertyReader assetsPropertyReader = new AssetsPropertyReader(context);
		prop = assetsPropertyReader.getProperties(fileName);
		prop.getProperty(PropertyManager.SERVER_IP);
		System.out.println(prop.getProperty(PropertyManager.SERVER_IP));
	}
	
	public static String getProperty(String key){
		return prop.getProperty(key);
	}
}
